| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/file-manager-advanced/application/assets/dist/ |
Upload File : |
"use strict";(self.webpackChunkafm_react_admin=self.webpackChunkafm_react_admin||[]).push([[538],{1538(n,e,t){t.r(e),t.d(e,{default:()=>s});var r=t(6540),i=t(5688),o=t(4848);function a(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,i,o,a,l=[],s=!0,c=!1;try{if(o=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(r=o.call(t)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(n){c=!0,i=n}finally{try{if(!s&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(n,e)||function(n,e){if(n){if("string"==typeof n)return l(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function s(){var n,e,t=a((0,r.useState)(!0),2),l=t[0],s=t[1],c=a((0,r.useState)(null),2),d=c[0],f=c[1],u=a((0,r.useState)(null),2),p=u[0],h=u[1],m=(0,i.lA)(),g=(null===(n=window.wpApiSettings)||void 0===n?void 0:n.nonce)||(null===(e=window.afmReact)||void 0===e?void 0:e.nonce)||"";return(0,r.useEffect)(function(){fetch("".concat(m,"file-manager-advanced/v1/plan-access"),{credentials:"same-origin",headers:{"X-WP-Nonce":g}}).then(function(n){if(!n.ok)throw new Error("Failed to fetch Plan Access content");return n.json()}).then(function(n){if(!n||!n.content)throw new Error("Invalid response from server");h(n.content),s(!1)}).catch(function(n){console.error("Plan Access fetch error:",n),f("Failed to load Plan Access content. Please try refreshing the page."),s(!1)})},[m,g]),l?(0,o.jsxs)("div",{className:"afm-tab-panel",style:{minHeight:"600px",padding:"20px"},children:[(0,o.jsx)("style",{children:"\n @keyframes afm-skeleton-shimmer {\n 0% { background-position: -200% 0; }\n 100% { background-position: 200% 0; }\n }\n .afm-skeleton {\n background-color: #e2e8f0;\n background-image: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);\n background-size: 200% 100%;\n animation: afm-skeleton-shimmer 1.4s linear infinite;\n }\n "}),(0,o.jsxs)("div",{style:{background:"#fff",border:"1px solid #ccc",padding:"20px"},children:[(0,o.jsx)("div",{className:"afm-skeleton",style:{height:"24px",width:"240px",borderRadius:"6px",marginBottom:"18px"}}),(0,o.jsx)("div",{className:"afm-skeleton",style:{height:"220px",width:"100%",borderRadius:"6px",marginBottom:"14px"}}),(0,o.jsx)("div",{className:"afm-skeleton",style:{height:"220px",width:"100%",borderRadius:"6px"}})]})]}):d?(0,o.jsx)("div",{className:"afm-tab-panel",style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"600px",padding:"40px"},children:(0,o.jsxs)("div",{style:{fontSize:"16px",color:"#dc3232",textAlign:"center",background:"#fff",padding:"20px",borderRadius:"8px",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:[d,(0,o.jsx)("br",{}),(0,o.jsx)("a",{href:"".concat(window.location.origin,"/wp-admin/admin.php?page=afmp-plan-features"),target:"_blank",rel:"noopener noreferrer",style:{color:"#0061FF",textDecoration:"underline",marginTop:"10px",display:"inline-block"},children:"Open Plan Access in new tab"})]})}):(0,o.jsxs)("div",{className:"afm-tab-panel",style:{width:"100%",padding:"0",margin:"0"},children:[(0,o.jsx)("style",{children:"\n .plan-feature-heading {\n display: none !important;\n }\n "}),(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:p},style:{width:"100%",minHeight:"600px"}})]})}},5688(n,e,t){function r(){var n,e;return function(n){if(!n||"string"!=typeof n)return n;try{var e=new URL(n,window.location.origin);return e.protocol=window.location.protocol,e.host=window.location.host,e.toString()}catch(e){return n.startsWith("/")?"".concat(window.location.origin).concat(n):n}}((null===(n=window.wpApiSettings)||void 0===n?void 0:n.root)||(null===(e=window.afmReact)||void 0===e?void 0:e.jsonURL)||"/wp-json/")}t.d(e,{lA:()=>r})}}]);
//# sourceMappingURL=538.chunk.js.map